import { type } from 'os';

import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class CreateMenuDto {

    @ApiProperty({ description: '菜单名称' })
    @IsNotEmpty()
    name: string;

    @ApiProperty({ description: '路由路径' })
    @IsNotEmpty()
    path: string;

    @ApiProperty({ description: '父级路由id' })
    pId: string;

    @ApiProperty({ default: '1' })
    type: string;
} 